﻿using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using NUnit;
using Menus.Model;
using Menus.Model.DB;
using System.Linq;
using System.Collections.Generic;


namespace MenusUnitTest
{
    [TestClass]
    public class IngredientTestUnit
    {
        [TestMethod]
        public void IngredientManager_add()
        {
            //ajout d'un ingrédient
            IngredientManager ingredient = new IngredientManager();
            string name = "ingredient test " + DateTime.Now.ToString();
            ingredient.add(name);

            //on test qu'il est bien présent en bdd
            MenusEntities menusEF = new MenusEntities();
            var res = menusEF.Ingredient.Where();
            


           // Assert.AreEqual(test, "hello");
        }
    }
}
